package com.corner.system.mapper;

import com.corner.system.domain.Device;
import com.corner.system.domain.FarmerUser;

import java.util.List;
import java.util.Map;

/**
 * 农户表mapper
 * 
 * @author corner
 */
public interface FarmerUserMapper
{

    /**
     * 根据电话查询农户
     * @param farmerUser
     * @return
     */
    public List<FarmerUser> selectFarmerUser(FarmerUser farmerUser);

    /**
     * 根据id查询农户
     * @param farmerId
     * @return
     */
    public FarmerUser selectFarmerUserById(Long farmerId);

    /**
     * 更新用户信息
     * @param farmerUser
     * @return
     */
    public int updateFarmerUser(FarmerUser farmerUser);

    /**
     * 查询子节点地址
     * @param parent
     * @return
     */
    public List<Map> selectAddrByParent(String parent);

    /**
     * 根据id查询地址
     * @param id
     * @return
     */
    public Map selectAddrById(String id);


}
